package cn.yao.jobclient.controller;

import cn.yao.jobclient.rest.JobRest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Admin
 * @Date: 2019-02-27 09:47
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private JobRest jobRest;

    private static Logger logger = LoggerFactory.getLogger(TestController.class);

    @RequestMapping("/222")
    public String remoteJobService (){
        logger.info("请求接口成功");

        String ss = jobRest.restJobService();
        logger.info("请求接口结束，返回{}",ss);
       return ss;
    }

}
